package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 pay
 * 
 * @author ruoyi
 * @date 2023-06-30
 */
@Data
public class Pay extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private String deptName;
    private Long day;
    /** 编号 */
    private Long id;

    /** 机构 */
    @Excel(name = "机构")
    private Long deptId;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 销售人 */
    @Excel(name = "销售人")
    private String salesman;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String telephone;

    /** 备注 */
    @Excel(name = "备注")
    private String bz;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setSalesman(String salesman) 
    {
        this.salesman = salesman;
    }

    public String getSalesman() 
    {
        return salesman;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setBz(String bz) 
    {
        this.bz = bz;
    }

    public String getBz() 
    {
        return bz;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("createTime", getCreateTime())
            .append("amount", getAmount())
            .append("updateTime", getUpdateTime())
            .append("endTime", getEndTime())
            .append("salesman", getSalesman())
            .append("telephone", getTelephone())
            .append("bz", getBz())
            .toString();
    }
}
